package org.example.myleet.p413;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(0 == solution.numberOfArithmeticSlices(new int[]{1}));
        Assert.isTrue(0 == solution.numberOfArithmeticSlices(new int[]{1,2,2}));
        Assert.isTrue(3 == solution.numberOfArithmeticSlices(new int[]{1,2,3,4}));
        Assert.isTrue(3 == solution.numberOfArithmeticSlices(new int[]{7,7,7,7}));
        Assert.isTrue(3 == solution.numberOfArithmeticSlices(new int[]{3,-1,-5,-9}));
        Assert.isTrue(6 == solution.numberOfArithmeticSlices(new int[]{1,2,3,4,5}));
        Assert.isTrue(6 == solution.numberOfArithmeticSlices(new int[]{1,3,5,7,9}));
        Assert.isTrue(2 == solution.numberOfArithmeticSlices(new int[]{1,2,3,5,4,3}));
        Assert.isTrue(3 == solution.numberOfArithmeticSlices(new int[]{1,2,3,3,3,5,4,3}));
    }
}
